package com.cm.module.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cm.module.system.entity.SysUser;
import com.cm.module.system.mapper.SysUserMapper;
import com.cm.module.system.service.ISysUserService;
import com.cm.restful.QueryRequest;
import org.springframework.stereotype.Service;

/**
 * @Description: 用户信息表
 * @Author: jeecg-boot
 * @Date:   2021-08-09
 * @Version: V1.0
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements ISysUserService {

    @Override
    public IPage<SysUser> findUserInfoList(SysUser sysUser, QueryRequest queryRequest) {
        return null;
    }

    @Override
    public SysUser getUserByName(String username) {
        QueryWrapper<SysUser> queryWrapper =  new QueryWrapper();
        queryWrapper.eq("username",username);
        SysUser po = this.baseMapper.selectOne(queryWrapper);
//		return userMapper.getUserByName(username);
        return po;
    }

}
